import java.util.Scanner;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: a1227
 * Date: 2022-10-08
 * Time: 23:04
 */
abstract class Base{
    public abstract int sum(int x,int y);
}

class Sub extends Base{
    public int sum(int x,int y){
        return x * 10 + y;
    }
}

public class Test {
    //JAVA27 重写父类方法——https://www.nowcoder.com/practice/aec55d55435b4af69e625d7072af3fa1?tpId=220&tqId=2116954&ru=/exam/oj&qru=/ta/primary-grammar-java/question-ranking&sourceUrl=%2Fexam%2Foj%3Fpage%3D1%26tab%3D%25E8%25AF%25AD%25E6%25B3%2595%25E7%25AF%2587%26topicId%3D220
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int x = in.nextInt();
            int y = in.nextInt();
            Base base = new Sub();
            System.out.println(base.sum(x,y));
        }
    }
}
